<%@ page import="cn.webrx.listener.CountOnline" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    getServletConfig().getServletContext().setAttribute("ip", request.getRemoteAddr());
%>
<html>
<head>
    <title>首页</title>
</head>
<body>
<%@ include file="nava.jsp" %>
<hr>
<%
    out.print(String.format("<h3>在线 %d 人，游客 %d 人</h3>", CountOnline.count, CountOnline.count - CountOnline.set.size()));
%>
<hr>
<%
    out.print(String.format("<h3>在线会员 %d 人</h3>", CountOnline.set.size()));
    for (String n : CountOnline.set) {
        out.print("<p>" + n + "</p>");
    }
%>
</body>
</html>
